﻿@if (ViewBag.IsPjaxRequest ?? false)
{
    <title>@(string.IsNullOrWhiteSpace(ViewBag.Title) ? "M栈俱乐部-MStack.club" : ViewBag.Title + " - M栈俱乐部-MStack.club")</title>
    @RenderSection("styles", false)
    @RenderSection("headScripts", false)
    @RenderSection("scripts", required: false)
    @RenderSection("footScripts", false)
    @RenderBody()
    return;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@(string.IsNullOrWhiteSpace(ViewBag.Title) ? "M栈俱乐部-MStack.club" : ViewBag.Title + " - M栈俱乐部-MStack.club")</title>
    <meta property="qc:admins" content="1776214747653413363452" /><!--QQ Auth认证-->
    @Styles.Render("~/Content/fx")
    @*@Scripts.Render("~/bundles/modernizr")*@
    @RenderSection("styles", false)
    @RenderSection("headScripts", false)
</head>
<body>
    <div class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                @Html.ActionLink("MStack(M栈俱乐部)", "Index", "Home", new { area = "" }, new { @class = "navbar-brand", data_pjax = 1 })
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li>@Html.ActionLink("问答", "Index", "Answer", null, new { data_pjax = 1 })</li>
                    <li>@Html.ActionLink("博客", "Index", "Blog", null, new { data_pjax = 1 })</li>
                    <li>@Html.ActionLink("论坛", "Index", "Forum", null, new { data_pjax = 1 })</li>
                    <li>@Html.ActionLink("电子书", "Index", "Ebook", null, new { data_pjax = 1 })</li>
                    <li>@Html.ActionLink("下载", "Index", "Download", null, new { data_pjax = 1 })</li>
                    <li>@Html.ActionLink("用户", "Index", "Author", null, new { data_pjax = 1 })</li>
                    
                </ul>
                @Html.Partial("_LoginPartial")
            </div>
        </div>
    </div>
    <div class="container body-content">
        <div id="pjax-container">
            @RenderBody()
        </div>
        <hr />
        <footer style="text-align:center">
            <p>&copy; @DateTime.Now.Year - MStack.club(M栈俱乐部)</p>
            <div>
                @Html.ActionLink("关于我们", "About", "Home", null, new { data_pjax = 1 }) |
                @Html.ActionLink("联系我们", "Contact", "Home", null, new { data_pjax = 1 }) |
                <a href="http://codefault.io" target="_blank">CodeFault.io</a> |
                <a href="http://www.odotnet.com" target="_blank">ODotNet</a> |
                <a href="http://stackoverflow.com/" target="_blank">StackOverFlow</a>
            </div>
        </footer>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/fx")
    @RenderSection("scripts", required: false)
    @RenderSection("footScripts", required: false)
    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?d0d0f7bfc6df15fe74e876d41ab3a810";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>

</body>
</html>
